<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>乘法表</title>
</head>
<body>
</body>
<script>
    document.write("<table border=\"1px\" cellspacing='0px' cellpadding='5px'>")
    for(let i=1; i<= 9; i++){ //行
        document.write("<tr>")
        for(let j=1; j<=i; j++){ // 列
            document.write("<td>")
            document.write(j + "X" + i + "=" + i * j);
            document.write("</td>")
        }
        // document.write("<br>")
        document.write("</tr>")
    }
    document.write("</table>")
</script>
</html>